package com.tgsoft.kdcloud.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.tgsoft.common.core.util.DateUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;

import org.hibernate.validator.constraints.Range;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * 用户
 *
 * @author 阿沐 babamu@126.com
 * <a href="https://maku.net">MAKU</a>
 */
@Data
@AllArgsConstructor
@Schema(description = "即时库存表")
public class InvVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "物料编码")
    private String materialNo;

    @Schema(description = "物料名称")
    private String materialName;

    @Schema(description = "计量单位")
    private String unitNo;

    @Schema(description = "计量单位名称")
    private String unitName;

    @Schema(description = "仓库编码", required = true)
    private String stockNo;

    @Schema(description = "仓库名称", required = true)
    private String stockName;

    @Schema(description = "库存状态编码")
    private String stockStatusNo;

    @Schema(description = "库存状态名称")
    private String stockStatusName;




    @Schema(description = "规格型号")
    private String model;

    //@Schema(description = "性别 0：男   1：女   2：未知", required = true)
    //@Range(min = 0, max = 2, message = "性别不正确")
    @Schema(description = "数量", required = true)
    private String Qty;

    @Schema(description = "批次")
    //@Email(message = "邮箱格式不正确")
    private String lot;



    public List<InvVo> getInvVoListFromJson(String json) {
        List<InvVo> invVoList = new ArrayList<>();
        return invVoList;
    }
}
